package cn.zhc.com.utils;

import android.app.Dialog;
import android.view.WindowManager;

/**
 * Created by zhouhongchun on 2017/9/6.
 */

public class UtilsSoftInput {
    /**
     * 解决弹窗的editView不能调起输入法的问题
     * @param mDialog
     */
    public static void dealSoftInputProblem(Dialog mDialog){
        mDialog.getWindow().clearFlags(WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE | WindowManager.LayoutParams.FLAG_ALT_FOCUSABLE_IM);
        mDialog.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_VISIBLE);
    }

}
